﻿body {
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    height: 100%;
    max-height: 100%;
}

#websearch-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 200px; /*Set right value to WidthOfFrameDiv*/
    bottom: 0;
    overflow-y: scroll;
    overflow: auto;
    background: #fff;
}
#websearch-results {
    padding-left: 3px;
}

#websearch-results li {
    margin-right: 4px;
    margin-bottom: 4px;
    float: left;
    position: relative;
    width: 200px;
    height: 200px;
    background-repeat: no-repeat;
    -moz-background-size: cover;
    -o-background-size: cover;
    -webkit-background-size: cover;
    background-size: cover;
    -moz-background-clip: content-box;
    -webkit-background-clip: content-box;
    background-clip: content-box;
    /*padding: 2px;*/
    border: 4px solid transparent;
}

    #websearch-results li.selected{border:4px #3C822E solid}
    #websearch-results li.selected:after{width:0;height:0;border-top:40px solid #3C822E;border-left:40px solid transparent;position:absolute;display:block;right:0;content:".";top:0;z-index:1000}
    #websearch-results li.selected:before{position:absolute;content:url();margin-right:-5px;color:#fff;right:5px;font-family:Tahoma;z-index:2000}


    #websearch-results li.has-focus {
    }

#websearch-results .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    background-color: black;
    color: white;
    text-align: right;
    font-size: 12px;
    opacity: 0.6;
    /*margin: 2px;*/
}

    #websearch-results .overlay p {
        padding-right: 5px;
        padding-left: 5px;
    }

/* PROPERTIES */

#websearch-properties {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 200px; /*Width of frame div*/
    height: 100%;
    overflow: hidden; /*Disable scrollbars. Set to "scroll" to enable*/
    background: #fafafa;
    color: grey;
    border-left: 1px solid #e0e0e0;
    padding-left: 15px;
}

    #websearch-properties h1 {
        font-size: 12px;
        line-height: 32px;
    }

    #websearch-properties .thumbnail {
        width: 120px;
        height: 120px;
        background-repeat: no-repeat;
        -moz-background-size: contain;
        -o-background-size: contain;
        -webkit-background-size: contain;
        background-size: contain;
        margin-bottom: 10px;
    }

    #websearch-properties em {
        font-weight: bold;
    }

    #websearch-properties li {
        float: left;
        margin-right: 5px;
        margin-bottom: 5px;    
    }

    #websearch-properties .selection {
        width: 60px;
        height: 60px;
        background-repeat: no-repeat;
        -moz-background-size: cover;
        -o-background-size: cover;
        -webkit-background-size: cover;
        background-size: cover;
    }

        #websearch-properties .selection .selection-overlay {
            width: 100%;
            height: 100%;
            /*background-color: black;
            opacity: 0.6;*/
        }

        #websearch-properties .selection .selection-progress {
            width: 100%;
            height: 100%;
            background-position: center;
            background-repeat: no-repeat;
        }

            #websearch-properties .selection .uploading {
                background-image: url('images/ajax-loader.gif');
                background-color: black;
                opacity: 0.6;
            }

        #websearch-properties .selection .success {
            background-image: url('');
            background-color: white;
            opacity: 0.6;
        }

        #websearch-properties .selection .failure {
            background-image: url('');
            background-color: white;
            opacity: 0.6;
        }

/* SEARCH */

.query-container {
    margin: 5px;
    width: 90%;
    margin-bottom: 10px;
}

#query {
    margin-right: 40px;
}

    #query input {
        width: 100%;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        height: 28px;
    }

#icon {
    float: right;
    width:40px;
}

#icon button {
    height: 28px;
    width: 40px;
    border: none;
    cursor: pointer;
    color: white;
    background-color:black;
    margin-bottom: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-size: 18px;
}

.actions {
    margin-top: 5px;
}

#message-api {
    background: #fdf5bc; /* yellow */
    border: 1px solid #ffea9b;
    margin: 5px;
    padding: 5px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}